home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / DATABASE / OBJ1_2.ZIP;1 / C_CURSOR.TXT < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.3 KB  |  47 lines

  1. '
  2. 'Class description:
  3. '
  4. !short:Cursor class structure:
  5. Class Cursor:
  6. ~~~~~~~~~~~~~~
  7. Cursor as an object is an screen location (Loc) with cursor size.
  8.  
  9.  
  10. Common use:
  11. ~~~~~~~~~~~~
  12. LOCAL OBJECT Cursor OF Cursor
  13. Cursor:Get()
  14. ...
  15. Cursor:Set()
  16.  
  17. Source text of class Cursor is in C_Cursor.prg
  18.  
  19. !seealso: c_loc.ngo:Loc c_color.ngo:Color ob_class.ngo:"Class hierarchy"
  20.  
  21. !short:~~~~~~~~~~~~~~~~~~~~~~~~
  22. !short:create class Cursor from Loc
  23. !short:  export:
  24. !short:  var Size    //SC_NONE
  25. ^BCursor:Size^N: public: numeric
  26.   Cursor size, for actual data look at clipper header SetCurs.ch
  27.  
  28. !short:  method New=CursorNew      //o:New() --> self
  29. ^BCursor:New()^N: public: return self
  30.   Object is filled with default values.
  31.  
  32. !short:  method Init=CursorInit    //o:Init(Row,Col,Size) --> true
  33. ^BCursor:Init(Row,Col,Size)^N: public: return true
  34.   The instvar variables of this object are updated with known parameter
  35.   values.
  36.  
  37. !short:  method Get=CursorGet      //o:Get() --> true
  38. ^BCursor:Get()^N: public: return true
  39.   Cursor size and position are stored to instvar variables of the object.
  40.  
  41. !short:  method Set=CursorSet      //o:Set() --> true
  42. ^BCursor:Set()^N: public: return true
  43.   Cursor size and position are restored from instvar variables of the object.
  44.  
  45. !short:  endclass
  46.  
  47.